<?php

namespace App\Models;

use Illuminate\Support\Facades\DB;


class UserModify extends Base
{

    // 用户管理
    protected $table = 'user_modify';

    protected $cacheFields = ['id', 'uid',];

    // 定义验证操作
    public function rules()
    {
        $add = [
        ];

        $edit = [
        ];

        $info = [
        ];


        $rule = [
            //'id'           => 'required',
            'uid' => 'required',
            //'residence'    => 'required',
            //'mail_address' => 'required',
            //'postal'       => 'required',
            //'birthday'     => 'required',
            //'edu'          => 'required',
            //'income'       => 'required',
            //'industry'     => 'required',
            //'work_scope'   => 'required',
            //'company_type' => 'required',
            //'worker_no'    => 'required',
        ];


        $msg = [
            'id'               => '自编号',
            'uid'              => '用户ID',
            'certify_type'     => '证件类型',
            'certify_code'     => '证件号码',
            'home'             => '家乡（城市）',
            'business'         => '企业名称',
            'business_summary' => '公司简介',
            'company'          => '媒体名称（公司）',
            'department'       => '部门',
            'city'             => '城市',
            'position'         => '职位',
            'areas'            => '关注领域',
            'description'      => '认证描述',

            'sIdCard'          => '',
            'sCard'            => '',
            'sCreditCode'      => '',
            'sLicense'         => '',
            'sLegalName'       => '',
            'sLegalPhone'      => '',
            'sAuthorize'       => '',
            'sCheckIn'         => '',

            'ctime'            => '注册时间',
            'mtime'            => '更新时间',
        ];

        return ['rule' => $rule, 'msg' => $msg, 'add' => $add, 'info' => $info];
    }

}
